<template>
    <div class="v-layout-box">
        <div class="v-layout-header">
            <slot name="header"></slot>
        </div>
        <div class="v-layout-content">
            <slot name="content"></slot>
        </div>
    </div>
</template>

<script>
export default {
    name: 'vLayout'

}
</script>

<style lang="less" scoped>
.v-layout-box{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    .v-layout-header{
        font-weight: 700;
        font-size: 26px;
        line-height: 26px;
        padding-bottom: 12px;
    }
    .v-layout-content{
        flex: 1;
        background: #fff;
        padding: 24px;
        border-radius: 5px;
        overflow: auto;
    }
}
</style>